From d1d654ebac2d51e3841675faeb56480e440f622f Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Tue, 5 Mar 2024 18:08:09 +0100 Subject: Initial commit --- frontend/src/routes/archives/[id]/+page.svelte | 99 ++++++++++++++++++++++++++ frontend/src/routes/archives/[id]/+page.ts | 5 ++ 2 files changed, 104 insertions(+) create mode 100644 frontend/src/routes/archives/[id]/+page.svelte create mode 100644 frontend/src/routes/archives/[id]/+page.ts (limited to 'frontend/src/routes/archives/[id]') diff --git a/frontend/src/routes/archives/[id]/+page.svelte b/frontend/src/routes/archives/[id]/+page.svelte new file mode 100644 index 0000000..50a2940 --- /dev/null +++ b/frontend/src/routes/archives/[id]/+page.svelte @@ -0,0 +1,99 @@ + + + + +{#if archive} + +
+ +
+ + + +
+ ($reader = $reader.open(e.detail))} + on:cover={updateCover} + /> +
+
+{:else} + +{/if} + + + + diff --git a/frontend/src/routes/archives/[id]/+page.ts b/frontend/src/routes/archives/[id]/+page.ts new file mode 100644 index 0000000..d872ba2 --- /dev/null +++ b/frontend/src/routes/archives/[id]/+page.ts @@ -0,0 +1,5 @@ +export function load({ params }: { params: Record }) { + return { + id: +params.id + }; +} -- cgit v1.2.3-2-gb3c3